<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>无限级联动</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="./layui/css/layui.css" media="all" />
    <style>
    #btn-wrap {
        margin: 100px auto;
        text-align: center;
    }

    form {
        margin: 30px;
    }
    </style>
</head>

<body>
    <form class="layui-form" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">多级1</label>
            <div id="cat_ids1">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">多级2</label>
            <div id="cat_ids2">
            </div>
        </div>

        <div class="layui-form-item" style="text-align:center;">
            <div class="layui-input-block">
                <button type="button" class="layui-btn" lay-submit="" lay-filter="demo">console.log</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>

    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script data-main="main" defer async="true" src="require.min.js"></script>

</body>

</html>